package net.xinqushi.design.COR;

//报销责任链，就是报销流程,项目经理<部门经理<总经理
public abstract class ConsumeHandler {

    private ConsumeHandler nextHandler;//一般用一个list来维护链条，这里简单的使用了next

    public ConsumeHandler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(ConsumeHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    //报销参数，人和钱
    public abstract void doHandler(String user , double free);

}
